﻿@model IRIS.Models.LinkViewModel

@{
    ViewBag.Title = "IRIS Ættleiðingartengd fræðsla : Hlekkir";
}

@section SubMenu
{
    <ul id="submenu">
        @foreach (var item in Model.m_linkCategories)
        { 
            <li>@Html.ActionLink(item.Name, "../LinkCategry/Index/", new { id = item.ID }) </li>
        
        }
    </ul>
}
@if (Model.m_links.Count() > 0)
{
    <div class="span-17 last">
    @foreach (var linkCategories in Model.m_linkCategories)
    {
    
        <div class="links">
    
        <h4>@linkCategories.Name</h4>
        @foreach (var links in Model.m_links)
        {
            if (linkCategories.ID == links.CID)
            { 
                <ul>
                   <li>
                        <a href="http://@links.URL">@links.Title</a>-<span> @links.Description</span>
                    </li>
                </ul>   
            }
        }
        </div>
    }
     </div>
}
else
{
    <p>Engir Hlekkir</p>
}